<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <div v-text="message">{{message}}</div>
        <div v-html="message"></div>
    </div>
    
<script src="../node_modules/vue/dist/vue.js"></script>
<script>
    // 1. 实例化 Vue
    var vm = new Vue({
        el:"#app",
        data:{
            message:"<a href='#'>Hello</a>"
        }
    })

    // v-text 用于绑定数据，语法 v-text='属性', 会直接将值作为文本显示
    // v-html 会将值进行编译
</script>
    
</body>
</html>